package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;
import org.springframework.data.domain.Page;

import java.util.List;

public interface DishService {

    //新增菜品
    public Result addNewDish(DishDTO dishDTO);

    //菜品分页查询
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    //批量删除
    int delete(List<Long> ids);

    Result update(DishDTO dishDTO);

    DishVO getByIdWithFlavor(Long id);

    Result startOrStop(Integer status, Long id);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
    List<Dish> selectByCategoryId(Long categoryId);
}
